<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui">

    <h:form id="SciftbplandocListForm">

        <p:panel header="#{myBundle.ListSciftbplandocTitle}">

            <p:dataTable id="datalist" value="#{sciftbplandocController.items}" var="item"
                         selectionMode="single" selection="#{sciftbplandocController.selected}"
                         rowKey="#{item.sciftbplandocid}"
                         paginator="true"
                         rows="5"
                         rowsPerPageTemplate="5,10,20,30"
                         >

                <p:ajax event="rowSelect"   update="createButton viewButton editButton deleteButton"/>
                <p:ajax event="rowUnselect" update="createButton viewButton editButton deleteButton"/>

                <p:column sortBy="#{item.sciftbplandocid}" filterBy="#{item.sciftbplandocid}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListSciftbplandocTitle_sciftbplandocid}"/>
                    </f:facet>
                    <h:outputText value="#{item.sciftbplandocid}"/>
                </p:column>
                <p:column sortBy="#{item.validaciondoc}" filterBy="#{item.validaciondoc}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListSciftbplandocTitle_validaciondoc}"/>
                    </f:facet>
                    <h:selectBooleanCheckbox id="validaciondoc" value="#{item.validaciondoc}" title="#{myBundle.EditSciftbplandocTitle_validaciondoc}" required="true" requiredMessage="#{myBundle.EditSciftbplandocRequiredMessage_validaciondoc}" disabled="true"/>
                </p:column>
                <p:column sortBy="#{item.validaciondir}" filterBy="#{item.validaciondir}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListSciftbplandocTitle_validaciondir}"/>
                    </f:facet>
                    <h:selectBooleanCheckbox id="validaciondir" value="#{item.validaciondir}" title="#{myBundle.EditSciftbplandocTitle_validaciondir}" required="true" requiredMessage="#{myBundle.EditSciftbplandocRequiredMessage_validaciondir}" disabled="true"/>
                </p:column>
                <p:column sortBy="#{item.validacionugp}" filterBy="#{item.validacionugp}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListSciftbplandocTitle_validacionugp}"/>
                    </f:facet>
                    <h:selectBooleanCheckbox id="validacionugp" value="#{item.validacionugp}" title="#{myBundle.EditSciftbplandocTitle_validacionugp}" required="true" requiredMessage="#{myBundle.EditSciftbplandocRequiredMessage_validacionugp}" disabled="true"/>
                </p:column>
                <p:column sortBy="#{item.fecharegistro}" filterBy="#{item.fecharegistro}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListSciftbplandocTitle_fecharegistro}"/>
                    </f:facet>
                    <h:outputText value="#{item.fecharegistro}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                </p:column>
                <p:column sortBy="#{item.observaciones}" filterBy="#{item.observaciones}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListSciftbplandocTitle_observaciones}"/>
                    </f:facet>
                    <h:outputText value="#{item.observaciones}"/>
                </p:column>
                <p:column sortBy="#{item.sctptbperiodoid.sctptbperiodoid}" filterBy="#{item.sctptbperiodoid.sctptbperiodoid}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListSciftbplandocTitle_sctptbperiodoid}"/>
                    </f:facet>
                    <h:outputText value="#{item.sctptbperiodoid.sctptbperiodoid}"/>
                </p:column>
                <p:column sortBy="#{item.sctptbmesesid.sctptbmesesid}" filterBy="#{item.sctptbmesesid.sctptbmesesid}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListSciftbplandocTitle_sctptbmesesid}"/>
                    </f:facet>
                    <h:outputText value="#{item.sctptbmesesid.sctptbmesesid}"/>
                </p:column>
                <p:column sortBy="#{item.sctbtbdatosgenid.scthtbdatosgenid}" filterBy="#{item.sctbtbdatosgenid.scthtbdatosgenid}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListSciftbplandocTitle_sctbtbdatosgenid}"/>
                    </f:facet>
                    <h:outputText value="#{item.sctbtbdatosgenid.scthtbdatosgenid}"/>
                </p:column>
                <p:column sortBy="#{item.pydgtbresponsaid.pydgtbresponsaid}" filterBy="#{item.pydgtbresponsaid.pydgtbresponsaid}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListSciftbplandocTitle_pydgtbresponsaid}"/>
                    </f:facet>
                    <h:outputText value="#{item.pydgtbresponsaid.pydgtbresponsaid}"/>
                </p:column>
                <f:facet name="footer">
                    <p:commandButton id="createButton" icon="ui-icon-plus"   value="#{myBundle.Create}" actionListener="#{sciftbplandocController.prepareCreate}" update=":SciftbplandocCreateForm" oncomplete="SciftbplandocCreateDialog.show()"/>
                    <p:commandButton id="viewButton"   icon="ui-icon-search" value="#{myBundle.View}" update=":SciftbplandocViewForm" oncomplete="SciftbplandocViewDialog.show()" disabled="#{empty sciftbplandocController.selected}"/>
                    <p:commandButton id="editButton"   icon="ui-icon-pencil" value="#{myBundle.Edit}" update=":SciftbplandocEditForm" oncomplete="SciftbplandocEditDialog.show()" disabled="#{empty sciftbplandocController.selected}"/>
                    <p:commandButton id="deleteButton" icon="ui-icon-trash"  value="#{myBundle.Delete}" actionListener="#{sciftbplandocController.delete}" update=":growl,datalist" disabled="#{empty sciftbplandocController.selected}"/>
                </f:facet>

            </p:dataTable>

        </p:panel>

    </h:form>

</ui:composition>